package 重温_Java并发基础.code.future;

/**
 * @author idea
 * @data 2020/2/15
 */
public class RealData {

    private CallableTask callableTask;

    private Object result;

    public RealData(CallableTask callableTask) {
        this.callableTask = callableTask;
        this.result = callableTask.run();
    }

    public Object getResult() {
        return result;
    }
}
